<template>
	<view class="els">
		<u-navbar :title="title" @rightClick="rightClick" :autoBack="true">
		</u-navbar>

		<view class="padding-30 padding-top-220">
			<u-parse :content="content"></u-parse>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				Imgbase: getApp().globalData.Imgbase,
				content: '',
				title: ''
			}
		},
		onLoad(e) {
			this.explain(e.id)
		},
		onShow() {

		},
		methods: {
			rightClick() {
				uni.navigateBack()
			},
			async explain(e) {
				let _this = this;
				let item = await this.$api.post('Index/explain', {
					id: e,
				})
				_this.content = item.data.desc.content;
				_this.title = item.data.desc.title;
			},
		},

	}
</script>

<style lang="less" scoped>
	.els {
		background-color: #fff;
		min-height: 100vh;
	}
</style>